package com.feizi.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.feizi.entity.OrderdetailEntity;
import com.feizi.entity.OrderinfoEntity;
import com.feizi.entity.ShopcartEntity;
import com.feizi.mapper.ShopcartMapper;
import com.feizi.service.ShopcartService;

@Service
public class ShopcartServiceImpl implements ShopcartService{
	
	@Autowired
	private ShopcartMapper shopcartMapper;

	@Override
	public List<ShopcartEntity> findShopcart(int uid) {
		// TODO Auto-generated method stub
		return shopcartMapper.findShopcart(uid);
	}

	@Override
	public int upShopcart(ShopcartEntity se) {
		// TODO Auto-generated method stub
		return shopcartMapper.upShopcart(se);
	}
	
	@Override
	public int addShopcart(ShopcartEntity se) {
		// TODO Auto-generated method stub
		return shopcartMapper.addShopcart(se);
	}

	@Override
	public int delShopcart(int id) {
		// TODO Auto-generated method stub
		return shopcartMapper.delShopcart(id);
	}

	@Override
	public List<ShopcartEntity> getShopcart(String ids) {
		// TODO Auto-generated method stub
		return shopcartMapper.getShopcart(ids);
	}

	@Override
	public int delOrShopcart(String ids) {
		// TODO Auto-generated method stub
		return shopcartMapper.delOrShopcart(ids);
	}

	
}
